<?php require_once(__DIR__.'/Smarty/Smarty.class.php');

class SmartyView extends Smarty {
	public function __construct(){
		parent::__construct();

		// auto literal on delimiters with whitspace
		$this->auto_literal = true; 
		// display error on not assigned variables
		$this->error_unassigned = false; 
		// template directory
		$this->template_dir = array(SITES_DIR . DS . 'Default' . DS . 'Basic' . DS);
		// default template handler
		$this->default_template_handler_func = null; 
		// compile directory
		$this->compile_dir = SYS_DIR . DS . 'SysCache' . DS . 'Smarty' . DS . 'Compile' . DS;
		// plugins directory
		$this->plugins_dir = array(SMARTY_PLUGINS_DIR);
		// cache directory
		$this->cache_dir = SYS_DIR . DS . 'SysCache' . DS . 'Smarty' . DS;
		// config directory
		$this->config_dir = '.' . DS . 'configs' . DS;
		// force template compiling?
		$this->force_compile = false; 
		// check template for modifications?
		$this->compile_check = true; 
		// locking concurrent compiles
		$this->compile_locking = true; 
		// use sub dirs for compiled/cached files?
		$this->use_sub_dirs = false; 
		// compile_error?
		$this->compile_error = false; 
		// caching enabled
		$this->caching = true; 
		// merge compiled includes
		$this->merge_compiled_includes = false; 
		// cache lifetime
		$this->cache_lifetime = 3600; 
		// force cache file creation
		$this->force_cache = false; 
		// cache_id
		$this->cache_id = null; 
		// compile_id
		$this->compile_id = null; 
		// template delimiters
		$this->left_delimiter = "{";
		$this->right_delimiter = "}"; 
		// security
		$this->security_class = 'Smarty_Security';
		$this->security_policy = null;
		$this->php_handling = self::PHP_PASSTHRU;
		$this->allow_php_tag = false;
		$this->allow_php_templates = false;
		$this->direct_access_security = true; 
		$this->trusted_dir = array();
		// debug mode
		$this->debugging = true;
		$this->debugging_ctrl = 'NONE';
		$this->smarty_debug_id = 'SMARTY_DEBUG';
		$this->debug_tpl = SMARTY_DIR . 'debug.tpl';
		// When set, smarty does uses this value as error_reporting-level.
		$this->error_reporting = null; 
		// config var settings
		$this->config_overwrite = true; //Controls whether variables with the same name overwrite each other.
		$this->config_booleanize = true; //Controls whether config values of on/true/yes and off/false/no get converted to boolean
		$this->config_read_hidden = false; //Controls whether hidden config sections/vars are read from the file.                                                      
		// config vars
		$this->config_vars = array(); 
		// assigned tpl vars
		$this->tpl_vars = array(); 
		// dummy parent object
		$this->parent = null; 
		// global template functions
		$this->template_functions = array(); 
		// resource type used if none given
		$this->default_resource_type = 'file'; 
		// caching type
		$this->caching_type = 'file'; 
		// internal cache resource types
		$this->cache_resource_types = array('file'); 
		// internal config properties
		$this->properties = array(); 
		// config type
		$this->default_config_type = 'file'; 
		// cached template objects
		$this->template_objects = null; 
		// check If-Modified-Since headers
		$this->cache_modified_check = false; 
		// registered plugins
		$this->registered_plugins = array(); 
		// plugin search order
		$this->plugin_search_order = array('function', 'block', 'compiler', 'class'); 
		// registered objects
		$this->registered_objects = array(); 
		// registered classes
		$this->registered_classes = array(); 
		// registered filters
		$this->registered_filters = array(); 
		// registered resources
		$this->registered_resources = array(); 
		// autoload filter
		$this->autoload_filters = array(); 
		// status of filter on variable output
		$this->variable_filter = true; 
		// default modifier
		$this->default_modifiers = array(); 
		// global internal smarty  vars
		static $_smarty_vars = array(); 
		// start time for execution time calculation
		$this->start_time = 0; 
		// default file permissions
		$this->_file_perms = 0644; 
		// default dir permissions
		$this->_dir_perms = 0771; 
		// block tag hierarchy
		$this->_tag_stack = array(); 
		// flag if {block} tag is compiled for template inheritance
		$this->inheritance = false;
		// generate deprecated function call notices?
		$this->deprecation_notices = true;
	}
}